making a pattern